import "./register.css";
import useForm from "@module/useForm";
import Input from "@ui/RJMart/input";
import Icon from "@ui/RJMart/icons";
import img0 from "../../../imgs/ic_chenggong.png";

export default function StepFour(props) {
    const params = $state.params;
    const { registerType, email } = params || {};

    return (
        <div className={"regi-step-four"}>
            {params.registerType == 1 && (
                <div>
                    <div className={"regi-step-four-right"}>
                        <img src={img0} />
                        <div className="zen_il-bl zen_m-l-20 zen_w-p80">
                            <p className={"regi-four-t1"}>提交成功</p>
                            <p className={"regi-four-t2"}>
                                恭喜您注册成功，您可以登录平台进行采购啦~
                            </p>
                        </div>
                    </div>
                </div>
            )}
            {params.registerType == 2 && (
                <div>
                    <div className={"regi-step-four-right"}>
                        <img src={img0} />
                        <div className="zen_il-bl zen_m-l-20 zen_w-p80">
                            <p className={"regi-four-t1"}>注册成功</p>
                            <p className={"regi-four-t2"}>
                                登录后进行资质认证与进驻医院后，即可销售商品了
                            </p>
                        </div>
                    </div>
                    <div className={"regi-four-bottom zen_p-t-20 zen_p-l-100"}>
                        <p>
                            尊敬的
                            <span className={"zen_0094EB"}>{params.email}</span>
                            ，您已成功注册锐竞商城，请点击
                        </p>
                        <div
                            onClick={() => {
                                $state.go({
                                    stateName: "/Login"
                                });
                            }}
                            className={"regi-four-btn"}
                        >
                            <p>登录</p>
                        </div>
                    </div>
                </div>
            )}
        </div>
    );
}
